import styled from "styled-components";

export const Container = styled.div`
  width: 100%;
  /* height: 100%; */
  height: 500px;
  overflow: hidden;
  display: flex;
`;

export const LeftContent = styled.div`
  width: ${(props: { width: number }) => props.width}px;
  overflow: auto;
  padding: ${(props: { width: number }) => (props.width === 0 ? 0 : 10)}px;
  box-sizing: content-box;
  transition: width 0.5s;
  position: relative;
  background-color: #666870;
`;

export const RightContent = styled.div`
  flex: 1;
  position: relative;
`;

export const ExpendBtn = styled.div`
  position: absolute;
  width: 30px;
  bottom: 0;
  top: 0;
  font-size: 14px;
  height: 60px;
  text-align: center;
  margin: auto;
  cursor: pointer;
  left: ${(props: { width: number }) => props.width ? props.width + 50 : 30}px;
  transition: left 0.5s;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  line-height: 60px;
  z-index: 100;
`;

export const Result = styled.div`
  position: absolute;
  width: 100%;
  height: ${(props: { height: number }) => props.height}px;
  bottom: 0;
  /* background-color: blue; */
  background-color: #292c33;
`;

export const ResultList = styled.div`
  height: ${(props: { height: number }) => props.height - 50}px;
  overflow: auto;
`;
export const ResultItem = styled.div`
  color: #fff;
  :hover {
    background-color: #eee;
  }
`;

export const Dragger = styled.div`
  width: 100%;
  display: flex;
  justify-content: flex-end;
  height: 50px;
  align-items: center;
  cursor: move;
  /* background-color: aqua; */
  background-color: #414755;
`;

export const ActionItem = styled.div`
  /* margin-top: 10px; */
  padding: 6px;
  text-align: center;
  border-radius: 5px;
  color: #555;
  font-size: 15px;
  cursor: pointer;
  background-color: #fff;
  margin-right: 10px;
`;
